package io.zhijian.app;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

import lombok.extern.slf4j.Slf4j;

@SpringBootApplication
@ServletComponentScan
@ComponentScan("io.zhijian")
@EnableScheduling
@Slf4j
public class WebApplication {
    public static void main(String[] args) {
        try {
            SpringApplication.run(WebApplication.class, args);
        }catch (Exception e){
            log.error("",e);
        }
    }
}
